package com.xx.java8.chapter2;

import com.xx.java8.domain.Apple;

public class AppleSimpleFormatter implements AppleFormatter {
    @Override
    public String accept(Apple apple) {
        return String.format("An apple of %fg", apple.getWeight());
    }
}
